import { get, post } from './request';

// 获取系统所有阈值配置
export function getthreshold() {
  return get('/api/v2/cockpit/get-threshold');
}
// 获取子系统每个的数量
export function devicecockpitdevice2plc() {
  return get('/api/v2/device/cockpit/device2plc');
}
// 设备健康度查询接口
export function cockpithealth(data) {
  return get('/api/v2/cockpit/health', data);
}
// 压力较高设备展示
export function cockpitpressure(data) {
  return post('/api/v2/cockpit/pressure', data);
}
// 剩余寿命较低设备展示
export function cockpitrestLife(data) {
  return post('/api/v2/cockpit/restLife', data);
}
// 查询总体健康度
export function cockpitavgHealth() {
  return get('/api/v2/cockpit/avgHealth');
}
// 查询预测异常预警
export function cockpitwarnings() {
  return get('/api/v2/cockpit/warnings');
}
